package com.jlf.starter.logger.reactive.conf;

import com.jlf.starter.logger.reactive.LoggingFilter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.server.WebFilter;

/**
 * webflux的统一日志的自动配置
 *
 * @author wujr
 * 2023/8/3
 * @version 1.0
 * 【变更历史】
 * [wujr 2023/8/3 1.0 新增]
 */
@Slf4j
@Configuration
public class LoggerAutoConfiguration {
    @Bean
    public WebFilter loggingFilter(){
        return new LoggingFilter();
    }
}
